package com.innovation.chengzhangriji.http;

import com.google.gson.annotations.SerializedName;
import com.innovation.library.http.InnovationRequestBody;

public class SignUpGetCodeRequest extends BaseRequest {


    public static final String PATH = BaseRequest.PATH + "api/verify_phone";

    private String phoneNum;

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    @Override
    protected InnovationRequestBody getInnovationRequestBody() {
        SignUpGetCodeRequestBody body = new SignUpGetCodeRequestBody();
        body.setPhoneNum(phoneNum);
        return body;
    }

    private class SignUpGetCodeRequestBody extends BaseRequestBody {

        @SerializedName("Phone")
        private String phoneNum;

        private SignUpGetCodeRequestBody() {
            setSv(BaseRequestConfig.SV_SIGN_UP_GET_CODE);
        }

        public String getPhoneNum() {
            return phoneNum;
        }

        public void setPhoneNum(String phoneNum) {
            this.phoneNum = phoneNum;
        }
    }

}
